package com.peng.order.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 新建订单参数
 * @author： Peng
 * @date： 2024/6/20
 * @version: 1.0
 */
@Data
public class OrderAddParam {
    @ApiModelProperty(value = "用户id")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @ApiModelProperty(value = "充电桩id")
    @NotNull(message = "充电桩id不能为空")
    private Integer pileId;

    @ApiModelProperty(value = "充电枪编号")
    @NotNull(message = "充电枪编号不能为空")
    Integer gunId;
}
